<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // if语句
        let day = 1;
        if(day == 1){
            console.log('需求会讨论');
        }else if(day ==2){
            console.log('查文档 构思');
        }else if(day ==3){
            console.log('编写业务逻辑');
        }else if(day == 4){
            console.log('提测');
        }else if(day ==5){
            console.log('发版');
        }else if(day = 6){
            console.log('加班');
        }else{
            console.log('加班');
        }

        
        // // 三元
        // 表达式1?表达式2:表达式3
        for(let i = 0;i<5;i++){
            console.log(i)
        }
        // for循环中存在块级作用域  所以报错
        console.log(i);
    </script>
</body>
</html>